import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { PolymerElement } from '@vaadin/angular2-polymer';

import { FansComponent } from './fans.component';
import { FansListComponent } from './list/list.component';
import { FansRoutingModule } from './fans-routing.module';

import { FanService } from '../service/fan.service';

@NgModule({
    imports: [
        CommonModule,
        HttpModule,
        FansRoutingModule
    ],
    declarations: [
        PolymerElement('vaadin-grid'),
        FansComponent,
        FansListComponent
    ],
    providers: [
        FanService
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class FansModule { }
